package com.lantosec.hmrp.core.kit;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 *
 *
 * @param <T>
 */
public class PageVO<T> extends Page<T> {
    private Long pageNo;
    private Long pageSize;
    private Long totalCount;

    public PageVO() {
        super();
    }

    public PageVO(Long pageNo, Long pageSize) {
        super();
        this.pageNo = pageNo;
        this.setCurrent(pageNo);
        this.pageSize = pageSize;
        this.setSize(pageSize);
    }

    public PageVO(Long pageNo, Long pageSize, Long totalCount) {
        super();
        this.pageNo = pageNo;
        this.setCurrent(pageNo);
        this.pageSize = pageSize;
        this.setSize(pageSize);
        this.totalCount = totalCount;
        this.setTotal(totalCount);
    }

    public Long getPageNo() {
        this.pageNo = this.getCurrent();
        return pageNo;
    }

    public void setPageNo(Long pageNo) {
        this.setCurrent(pageNo);
        this.pageNo = pageNo;
    }

    public Long getPageSize() {
        this.pageSize = this.getSize();
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.setSize(pageSize);
        this.pageSize = pageSize;
    }

    public Long getTotalCount() {
        this.totalCount = this.getTotal();
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.setTotal(totalCount);
        this.totalCount = totalCount;
    }

}
